<div class="funcarea">
	<label>参数名</label>
	<select id="searchCondition">
	<option value="deployId">发布ID</option>
	
					<option value="tabId">商城位置页</option>	
			
					<option value="itemId">道具</option>	
			
					<option value="coinPrice">金币价格</option>	
			
					<option value="silverPrice">银币价格</option>	
			
			
			
					<option value="coinPirceDiscount">金币折扣</option>	
			
					<option value="silverPriceDiscount">银币折扣</option>	
			
					<option value="levelLimit">等级下限</option>	
			
					<option value="vipLevelLimit">VIP等级下限</option>	
			
					<option value="rank">排名</option>	
			
					<option value="shop_itemres">商城道具资源</option>	
				</select>
	<label>参数值</label>
	<input type="text" id="searchValue"/>
	<a href="javascript:void(0)" onclick="searchshop_item()">查询</a>
	<a href="javascript:void(0)" onclick="document.location.reload()">刷新</a>
	<a href="javascript:void(0)" onclick="promptAdd()">增加</a>
	<a href="javascript:void(0)" onclick="promptExport()">导出</a>
	<a href="javascript:void(0)" onclick="extract()">转换商城道具数据</a>
	<a href="javascript:void(0)" onclick="publish()">发布商城道具</a>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
<div class="dataarea">
	<table>
		<thead>
			<tr>
			<th nowrap>发布ID</th>
			
				<th nowrap>商城位置页</th>
			
				<th nowrap>道具</th>
			
				<th nowrap>金币价格</th>
			
				<th nowrap>银币价格</th>
			
				<th nowrap>状态</th>
			
				<th nowrap>是否打折</th>
			
				<th nowrap>金币折扣</th>
			
				<th nowrap>银币折扣</th>
			
				<th nowrap>等级下限</th>
			
				<th nowrap>VIP等级下限</th>
			
				<th nowrap>排名</th>
			
				<th nowrap>商城道具资源</th>
							<th nowrap class="operator">----------操作---------</th>
			</tr>
		</thead>
		<tbody>
		{% for shop_item in shop_items %}
			<tr id="row_{{ shop_item.id }}">
				<td><a href="javascript:void(0)" onclick="promptMenu({{ shop_item.id }})">{{ shop_item.deployId }}</a></td>
				
					
						<td>{{ shop_item.tabId }}</td>
									
					
						<td>{{ shop_item.itemId }}</td>
									
					
						<td>{{ shop_item.coinPrice }}</td>
									
					
						<td>{{ shop_item.silverPrice }}</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 shop_item.status %}selected="selected"{% endifequal %}>普通</option>
								
									<option value="1" {% ifequal 1 shop_item.status %}selected="selected"{% endifequal %}>新品</option>
								
									<option value="2" {% ifequal 2 shop_item.status %}selected="selected"{% endifequal %}>热卖</option>
								
									<option value="3" {% ifequal 3 shop_item.status %}selected="selected"{% endifequal %}>上架</option>
															</select>
						</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 shop_item.isDiscount %}selected="selected"{% endifequal %}>否</option>
								
									<option value="1" {% ifequal 1 shop_item.isDiscount %}selected="selected"{% endifequal %}>是</option>
															</select>
						</td>
									
					
						<td>{{ shop_item.coinPirceDiscount }}</td>
									
					
						<td>{{ shop_item.silverPriceDiscount }}</td>
									
					
						<td>{{ shop_item.levelLimit }}</td>
									
					
						<td>{{ shop_item.vipLevelLimit }}</td>
									
					
						<td>{{ shop_item.rank }}</td>
									
					
						<td>{{ shop_item.shop_itemres }}</td>
													<td class="operator">
					<a href="javascript:editshop_item({{ shop_item.id }})">编辑</a>
					<a href="javascript:removeshop_item({{ shop_item.id }})">删除</a>
					<a href="javascript:showshop_item({{ shop_item.id }})">显示JSON</a>
				</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
